<template>
  <div id="app">
    <button class="btn" @click="handle(false)">显示</button>
    <button class="btn" @click="handle(true)">隐藏</button>
    <div class="content" v-hide="isShow">文本内容...</div>
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {
      isShow: false
    };
  },
  methods: {
    handle(val) {
      this.isShow = val;
    }
  }
};
</script>

<style lang="scss" scoped>
.btn {
  width: 50px;
  border-radius: 3px;
  border: 1px solid #ccc;
  margin: 5px;
}
.content {
  display: block;
  width: 200px;
  height: 200px;
  padding: 10px;
  background-color: pink;
}
</style>
